package homework;

import java.sql.SQLOutput;
import java.time.LocalDateTime;
import java.util.Scanner;

/**
 * @ClassName homework08
 * @Description TODO
 * @Author 黑白灰色雨
 * @Date 2024/8/27 15:46
 * @Version 1.0
 */
public class homework08 {
    public static void main(String[] args) {
        String i="n";
        System.out.println("请输入一个整数：");
        Scanner scanner=new Scanner(System.in);
        String s=scanner.nextLine();
        LocalDateTime now=LocalDateTime.now();
        boolean is=true;
        while (is){
            if(s.equals(i)){
                break;
            }else {
                System.out.println("循环操作中，当前时间是："+now);
                System.out.println("输入n退出循环！");
                if(scanner.nextLine().equals(i)){
                    is=false;
                }
            }
        }
    }
}
